<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>EW</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>	
        <style type="text/css">
            * {margin:0;padding:0}
            body {font:12px/16px Arial;padding:10px}
            hr {background: none;border:0;border-bottom: 1px solid #ccc; margin:5px 0}
            th {text-align: left}
            input {padding:3px 5px}
        </style>        
    </head>
    <body>
        <div id="wrapper">
            <div id="content">
                <a href="<?php echo $this->config->item('base_url');?>">Home</a>
                <hr />

                <table>
                <?php foreach ($messages as $m):?>
                    <tr>
                        <td><?php echo $m['id']?></td>
                        <td><?php echo $m['created_time']?></td>
                        <td><?php echo $m['type']?></td>
                        <td><?php echo $m['sender']?></td>
                        <td><?php echo $m['subject']?></td>
                        <td><?php echo $m['body']?></td>

                    </tr>
                <?php endforeach;?>
                </table>
            </div>
        </div>	
    </body>
</html>
